package cn.com.nes.site.entity.bo.callcenter;

import cn.com.nes.mybatis.callcenter.entity.HouseClientele;
import lombok.Data;

/**
 * 房屋客户关系保存模型
 */
@Data
public class HouseClienteleSaveBo {

    private Long id;

    /**
     * 房屋id
     */
    private Long houseId;

    /**
     * 客户id
     */
    private Long clienteleId;

    /**
     * 创建时间
     */
    private Long gmtCreate;

    /**
     * 修改时间
     */
    private Long gmtModified;

    /**
     * 转换房屋客户关系信息
     * @return
     */
    public HouseClientele toHouseClientele() {
        HouseClientele houseClientele = new HouseClientele();
        houseClientele.setId(this.id);
        houseClientele.setHouseId(this.houseId);
        houseClientele.setClienteleId(this.clienteleId);
        houseClientele.setGmtCreate(this.gmtCreate);
        houseClientele.setGmtModified(this.gmtModified);
        return houseClientele;
    }

}
